package com.fuli.app.service;

import com.fuli.app.common.ActionResult;
import com.fuli.app.common.Pagination;
import com.fuli.app.dto.MessageDTO;
import com.fuli.app.dto.query.MessageQueryDTO;

import java.util.List;

public interface MessageService {
    ActionResult<String> add(MessageDTO dto);

    ActionResult<String> delete(String id);

    ActionResult<List<String>> batchDelete(List<String> ids);

    ActionResult<MessageDTO> get(String id);

    ActionResult<Pagination<MessageDTO>> listByQueryDTO(MessageQueryDTO queryDTO);

    ActionResult<String> deal(String id);

    ActionResult<List<String>> batchDeal(List<String> ids);

    ActionResult<Pagination<MessageDTO>> listAllByQueryDTO(MessageQueryDTO queryDTO);
}
